# -*- coding: utf-8 -*-
# @Time    : 2020/3/20 9:11
# @Author  : Weymouth
# @Email   : 261229090@qq.com
# @File    : pickle_test.py
# @Software: PyCharm
# ---------------------------------------------------

import pickle

def foo():
    print('ok')

data = pickle.dumps(foo)

f = open('PICKLE_test', 'wb')

f.write(data)
f.close()